package com.lfs.market.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lfs.market.model.dto.SystemProductTypePageDto;
import com.lfs.market.model.entity.ProductType;

public interface ProductTypeService extends IService<ProductType> {

    /**
     * 查询商品分类列表
     *
     * @param dto
     * @return
     */
    Page getTypePageList(SystemProductTypePageDto dto);

    /**
     * 添加商品分类
     *
     * @param type 分类
     * @return
     */
    void createType(ProductType type);

    /**
     * 编辑商品分类
     *
     * @param type
     * @return
     */
    void editType(ProductType type);
}
